<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
</head>
<body>
   <script>
       function getMusic() {
        $.ajax({
            url:'https://autumnfish.cn/search',
            method:'Get',
            data: {
                keywords:'海阔天空'
            },
            dataType:'json',
            success: (res) => {
                console.log(res);
                //回调，函数b依赖于函数a的结果构成逻辑线（应用于函数b需再函数a之后执行的情况下），但嵌套过多易导致调用栈溢出崩溃
                singSong()  
            }
        })
       }
       getMusic()
       function singSong() {
           console.log('sing...');
       }
    //    singSong()
   </script> 
</body>
</html>